/**
 * Custom PySR-inspired Theme for SymbolicRegression.jl
 * Deep red/burgundy color scheme matching PySR branding
 */

:root {
  /* Primary brand colors - PySR red/burgundy theme */
  --vp-c-brand-1: #C03143;
  --vp-c-brand-2: #9E2B3A;
  --vp-c-brand-3: #7A1F2C;
  --vp-c-brand-soft: rgba(192, 49, 67, 0.14);

  /* Interactive elements */
  --vp-c-brand-1-hover: #D6405B;
  --vp-c-brand-2-hover: #B8354A;
  --vp-c-brand-3-hover: #8F2438;

  /* Button styles */
  --vp-button-brand-border: transparent;
  --vp-button-brand-text: var(--vp-c-white);
  --vp-button-brand-bg: var(--vp-c-brand-1);
  --vp-button-brand-hover-border: transparent;
  --vp-button-brand-hover-text: var(--vp-c-white);
  --vp-button-brand-hover-bg: var(--vp-c-brand-1-hover);
  --vp-button-brand-active-border: transparent;
  --vp-button-brand-active-text: var(--vp-c-white);
  --vp-button-brand-active-bg: var(--vp-c-brand-2);

  /* Home hero customization */
  --vp-home-hero-name-color: transparent;
  --vp-home-hero-name-background: linear-gradient(135deg, #C03143 0%, #D6405B 50%, #9E2B3A 100%);

  /* Code blocks accent */
  --vp-code-color: #C03143;

  /* Links */
  --vp-c-brand: var(--vp-c-brand-1);
  --vp-c-brand-light: var(--vp-c-brand-2);
  --vp-c-brand-lighter: var(--vp-c-brand-3);
  --vp-c-brand-dark: #6A1A25;
  --vp-c-brand-darker: #4F131C;
}

/* Dark mode adjustments */
html.dark {
  --vp-c-brand-1: #E55470;
  --vp-c-brand-2: #C03143;
  --vp-c-brand-3: #9E2B3A;
  --vp-c-brand-soft: rgba(229, 84, 112, 0.16);

  --vp-c-brand-1-hover: #EC6C85;
  --vp-c-brand-2-hover: #D6405B;
  --vp-c-brand-3-hover: #B8354A;

  /* Lighter burgundy for better contrast in dark mode */
  --vp-home-hero-name-background: linear-gradient(135deg, #E55470 0%, #C03143 50%, #9E2B3A 100%);
}

/* Feature cards hover effect with burgundy accent */
.VPFeature:hover {
  border-color: var(--vp-c-brand-1);
  box-shadow: 0 2px 8px rgba(192, 49, 67, 0.1);
}

/* Custom styling for mathematical feel */
.vp-doc h1, .vp-doc h2, .vp-doc h3 {
  background: var(--vp-home-hero-name-background);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vp-doc .header-anchor {
  -webkit-text-fill-color: var(--vp-c-brand-1) !important;
}

/* Subtle gold glow for code blocks */
.vp-code-group .tabs .tab.active {
  color: var(--vp-c-brand-1);
  border-bottom-color: var(--vp-c-brand-1);
}

/* Add space after feature cards */
.VPFeatures {
  margin-bottom: 48px;
}

/* Separator after feature cards */
.VPFeatures + * {
  border-top: 1px solid var(--vp-c-divider);
  padding-top: 48px;
}

/* Center images on papers page */
figure {
  text-align: center;
}

figure img {
  margin: 0 auto;
  display: block;
}

/* Make language picker match version picker styling (black text, not red) */
.VPNavBarMenuGroup button .text {
  color: var(--vp-c-text-1) !important;
}
.VPNavBarMenuGroup:hover button .text {
  color: var(--vp-c-text-2) !important;
}
